import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class InitLinearGradient extends StatelessWidget {
  Widget widget;
  InitLinearGradient(this.widget);
  @override
  Widget build(BuildContext context) {
    return getChatTemplate();
  }

  Widget getChatTemplate() {
    return Container(
      decoration: BoxDecoration(
        gradient: LinearGradient(
          colors: [
            Color(0xFF43C178),
            Color(0xFF4BBE87),
            Color(0xFF43C178),
            Color(0xFF4BBE87),
            Color(0xFF43C178),
            Color(0xFF4BBE87),
          ],
          begin: Alignment.topLeft,
          end: Alignment.bottomRight,
        ),
      ),
      child: this.widget,
    );
  }
}
